package com.xoa.dao.supervision;

import com.xoa.model.hr.HrStaffLeave;
import com.xoa.model.supervision.Supervision;
import com.xoa.model.supervision.SupervisionApply;
import com.xoa.model.supervision.SupervisionExample;

import java.util.HashMap;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SupervisionMapper {

    int countByExample(SupervisionExample example);
    int deleteByExample(SupervisionExample example);
    int deleteByPrimaryKey(Integer sid);
    int insert(Supervision record);
    int insertSelective(Supervision record);
    List<Supervision> selectByExample(SupervisionExample example);
    Supervision selectByPrimaryKey(Integer sid);
    int updateByExampleSelective(@Param("record") Supervision record, @Param("example") SupervisionExample example);
    int updateByExample(@Param("record") Supervision record, @Param("example") SupervisionExample example);
    int updateByPrimaryKeySelective(Supervision record);
    int updateByPrimaryKey(Supervision record);

    public List<Supervision> getSupManageByTypeId(HashMap<String,Object> maps);

    int addSupervision(Supervision supervision);

    public void deleteSupervisionBySid(Integer sid);

    public List<Supervision> selectCountList(Supervision supervision);

    public int queryCountSupervisionByStatus();

    public Supervision getSupAssistDetail(Supervision supervision2);

    Supervision queryCountSupervisionByStatus(Supervision paraSup);

    public List<Supervision> getSupApplyTaskList1(Supervision paraSup);

    Supervision queryCountByType(Supervision paraSup);
    /**
     * 创建作者:   杨 胜
     * 创建日期:   2017-8-3 下午5:53:57
     * 方法介绍:
     * 参数说明:   @return
     * @return     Supervision
     */
    Supervision queryCount();

    int updateSupervision(Supervision supervision);

    Integer getSupManageByTypeIdCount(HashMap<String, Object> maps);
}